package com.zy.springcloud.service;

import com.zy.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {


//    CommonResult <Payment> getPaymentById(@Param("id") Long id);
    @GetMapping("/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id")Long id);


    @GetMapping(value = "/payment/feign/timeout")
    public  String paymentFeignTimeout();

}
